package com.buaa.aimall.Utils.Config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "cleanup")
@Data
public class CleanupProperties {
    private int expiredOrderMinutes = 15;  // 默认15分钟
    private int taskIntervalMillis = 60000; // 默认1分钟
} 